home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / WMS.CAB / treeHdr.asp < prev    next >
Encoding:
Text File  |  2003-02-21  |  7.0 KB  |  161 lines

  1. ∩╗┐<%@ Language=VBScript CODEPAGE=65001 %>
  2. <!--#include file="include/wmsConstants.inc"-->
  3. <!--#include file="include/wmsLocStrings.inc"-->
  4. <!--#include file="include/wmsCommon.inc"-->
  5. <!--#include file="include/wmsHeader.inc"-->
  6. <% 
  7. '+-------------------------------------------------------------------------
  8. '
  9. '  Microsoft Windows Media
  10. '  Copyright (C) Microsoft Corporation. All rights reserved.
  11. '
  12. '  File:       treeHdr.asp
  13. '
  14. '  Contents:
  15. '
  16. '--------------------------------------------------------------------------
  17.  
  18. on error resume next
  19.  
  20. Dim g_bSecureConnection
  21. Dim g_dwBrowserType
  22.  
  23. g_bSecureConnection = CBool( 0 = StrComp( "on", Request.ServerVariables( "HTTPS" ), vbTextCompare ) )
  24. BrowserSniff
  25.  
  26. WriteHTMLHeader( g_strDecodedServerName ) 
  27. %>
  28. <link rel="stylesheet" type="text/css" href="<%= Session( "cssName" ) %>">
  29. <script language="JavaScript">
  30. <!--
  31. /*@cc_on @*/
  32.  
  33. ///////////////////////////////////////////////////////////////////////
  34. function ShowSecurity()
  35. {
  36.     <% jsTRY %>
  37.         var win;<%
  38.         strLocalHostWinName = Session( "LocalHostWinName" )
  39.         if( 0 >= Len( strLocalHostWinName ) ) then
  40.             strLocalHostWinName = Request.QueryString( "server" )
  41.             Session( "LocalHostWinName" ) = strLocalHostWinName
  42.         end if
  43.         %>
  44.         var szUrl = new String( "/default.asp?lhwn=<%= strLocalHostWinName %>" );
  45.         var szFeatures = "";
  46.         win = window.open( szUrl, "sList", szFeatures, true );        
  47.         if( win )
  48.         {
  49.             win.focus();
  50.         }
  51.     <% jsCATCH %>
  52. }
  53.  
  54. ///////////////////////////////////////////////////////////////////////
  55. <% if brMSIE <> g_dwBrowserType then %>
  56. function HandleRClick( event )
  57. {
  58.     event.cancelBubble = true;
  59.     event.returnValue = false;
  60.     return( false );
  61. }
  62.  
  63. document.onmousedown=HandleRClick;
  64. document.onmouseup=HandleRClick;
  65. document.oncontextmenu=HandleRClick;
  66. window.onmousedown=HandleRClick;
  67. window.onmouseup=HandleRClick;
  68. window.oncontextmenu=HandleRClick;
  69. <% end if %>
  70. -->
  71. </script>
  72. <% if brMSIE = g_dwBrowserType then %>
  73. <script language="JavaScript" event="oncontextmenu" for=document>
  74.     event.cancelBubble=true;
  75.     return false;
  76. </script>
  77. <% end if %>
  78. </head>
  79. <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" marginwidth="0" marginheight="0" height="85" oncontextmenu="JavaScript:return true;event.cancelBubble=true;return false;">
  80. <table width="100%" height="85" border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" hspace="0" vspace="0" cols="1" rows="1">
  81. <tr valign="top" bgcolor="#FFFFFF">
  82.     <td valign="top" align="left" height="44" width="100%" bgcolor="#FFFFFF">
  83.         <table height="44" width="100%" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" hspace="0" vspace="0" border="0" style="position:absolute;top:5;left:5" bgcolor="#FFFFFF">
  84.         <tr height="8">
  85.             <td>
  86.                 <img src="WMSSpacer.gif" height="8" width="1">
  87.             </td>
  88.         </tr>
  89.         <tr bgcolor="#FFFFFF" numcols="2">
  90.             <td width="8">
  91.                 <img src="WMSSpacer.gif" height="1" width="8">
  92.             </td>
  93.             <td width="220px">
  94.                 <img onClick="JavaScript:ShowSecurity();" class="handcursor" align="top" src="img\treebanner.gif" width="220px" height="40px" border="0" alt="" style="position:absolute;top:0;left:0">
  95.             </td>
  96.         </tr>
  97.         </table>
  98.     </td>
  99. </tr>
  100. <%
  101. if( FALSE = g_bSecureConnection ) then
  102. %><tr valign="bottom" height="24">
  103.     <td height="24" valign="bottom" align="left">
  104.         <table cellspacing="0" cellpadding="0" bgcolor="#FFFFDD" bordercolor="#FF0000" border="1" style="border-width=0" height="24" width="100%" hspace="0" vspace="0">
  105.             <tr valign="middle">
  106.                 <td>
  107.                     <table cellpadding="0" cellspacing="0" border="0">
  108.                     <tr>
  109.                         <td nowrap align="absmiddle">
  110.                             <a href="JavaScript:ShowSecurity();">
  111.                             <img border="0" valign="middle" height="24" width="24" alt="<%= Server.HTMLEncode( L_NONSECUREWARNING_TEXT ) %>" src="img/not_secure_24.gif">
  112.                             </a>
  113.                         </td>
  114.                         <td>
  115.                             <span class="defaultcursor"> </span>
  116.                         </td>
  117.                         <td nowrap valign="middle">
  118.                             <span title="<%= Server.HTMLEncode( L_NONSECUREWARNING_TEXT ) %>" onClick="JavaScript:ShowSecurity();" class="warntext" style="cursor:hand" id="nonsecure" valign="middle" href="http://<%= Request.ServerVariables( "HTTP_HOST" ) %>/default.asp" target="sList" border="0">
  119.                                 <% if ( brMSIE <> Session( "BrowserType" ) ) then %><a class="warntext" style="cursor:hand" href="JavaScript:ShowSecurity();"><font color="#ff0000"><% end if %><%= Server.HTMLEncode( L_NONSECURE_TEXT ) %><% if( brMSIE <> Session( "BrowserType" ) ) then %></font></a><% end if %>
  120.                             </span>
  121.                         </td>
  122.                     </tr>
  123.                     </table>
  124.                 </td>
  125.             </tr>
  126.         </table>
  127.     </td>
  128. </tr><%
  129. else
  130. %><tr valign="bottom" height="24">
  131.     <td height="24" valign="bottom" align="left">
  132.         <table cellspacing="0" cellpadding="0" bgcolor="#EFEFEF" bordercolor="#DDDDDD" border="1" style="border-width=0" height="24" width="100%" hspace="0" vspace="0" ID="Table1">
  133.             <tr valign="middle">
  134.                 <td>
  135.                     <table cellpadding="0" cellspacing="0" border="0">
  136.                     <tr>
  137.                         <td nowrap align="absmiddle">
  138.                             <a href="JavaScript:ShowSecurity();">
  139.                             <img border="0" valign="middle" height="24" width="24" alt="<%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %>" src="img/secure_24.gif">
  140.                             </a>
  141.                         </td>
  142.                         <td>
  143.                             <span class="defaultcursor"> </span>
  144.                         </td>
  145.                         <td nowrap valign="middle">
  146.                             <span title="<%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %>" onClick="JavaScript:ShowSecurity();" style="color:green;cursor:hand" id="Span1" valign="middle" href="http://<%= Request.ServerVariables( "HTTP_HOST" ) %>/default.asp" target="sList" border="0">
  147.                                 <% if ( brMSIE <> Session( "BrowserType" ) ) then %><a class="warntext" style="cursor:hand;color:black" href="JavaScript:ShowSecurity();"><font color="#000000"><% end if %><%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %><% if( brMSIE <> Session( "BrowserType" ) ) then %></font></a><% end if %>
  148.                             </span>
  149.                         </td>
  150.                     </tr>
  151.                     </table>
  152.                 </td>
  153.             </tr>
  154.         </table>
  155.     </td>
  156. </tr><%
  157. end if %>
  158. </table>
  159. </body>
  160. </html>
  161.